<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .div1 {
            width: 50px;
            height: 50px;
            background-color: red;
            position: absolute;
            left: 50%;
            transform: translate(-50%, 0);
            color: black;
        }
    </style>
</head>
<body>
<div class="div1"></div>

<div c></div>
</body>
</html>
